package com.xspace.android.imcommon.interfaces;

import android.os.Parcel;
import android.os.Parcelable;

import com.xspace.android.imcommon.entity.ChatMsgSnap;

import java.util.ArrayList;

public class ChatSnapListAidl implements Parcelable {
	public ArrayList<ChatMsgSnap> respList;

	public ChatSnapListAidl(ArrayList<ChatMsgSnap> respList) {
		super();
		this.respList = respList;

	}

	public ChatSnapListAidl(Parcel in) {
		readFromParcel(in);

	}

	protected void readFromParcel(Parcel in) {
		respList = (ArrayList<ChatMsgSnap>) in.readSerializable();
	}

	@Override
	public void writeToParcel(Parcel parcel, int flags) {
		parcel.writeSerializable(respList);
	}

	@Override
	public int describeContents() {
		return 0;
	}

	public static final Creator<ChatSnapListAidl> CREATOR = new Creator<ChatSnapListAidl>() {
		public ChatSnapListAidl createFromParcel(Parcel in) {
			return new ChatSnapListAidl(in);
		}

		public ChatSnapListAidl[] newArray(int size) {
			return new ChatSnapListAidl[size];
		}
	};
}
